package com.ebupt.migu.fineoperationactivitymonitor.media.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.mediadata.pojo.MediaActivity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author tz
 */
@Mapper
@DS("mysql_mg")
public interface MediaActivityMapper extends BaseMapper<MediaActivity> {

    default List<MediaActivity> qryByStatus(int status){
        return this.selectList(new QueryWrapper<MediaActivity>().lambda()
            .eq(MediaActivity::getExecuteStatus,status));
    }
}
